package com.learning.cloud.service;

import com.learning.cloud.entity.User;
import com.learning.cloud.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description:
 *
 * @author minghuiZhang
 * @date created in  14:40 2018/4/28
 * modified by
 */
@Service("userService")
public class UserService {
	@Autowired
	private UserRepository userRepository;

	public User findOne(Long id){
		return userRepository.findOne(id);
	}
}
